﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FineUI;

namespace ZHDJ.WebPage.Picker
{
    public class PickerPageBase: DBPageBase
    {
        /// <summary>
        /// 返回值
        /// </summary>
        /// <param name="value">Picker值</param>
        /// <param name="text">Picker文本</param>
        public void ReturnValue(string value,string text)
        {
            PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(value, text)
                + ActiveWindow.GetHideReference());
        }

        /// <summary>
        /// 获取已选择的值 
        /// </summary>
        public List<string> SelectValue
        {
            get { return Request.QueryString["ids"].Split(',').ToList(); }
        }
    }
}
